package com.title9;

import java.io.*;

/**
 * @Author milian
 * @Date 2021/8/3 0003 19:37
 */
public class title9 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("homeWork\\a.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\a.txt"));
        byte[] bytes = new byte[1024];
        int len;
        while ((len=bis.read(bytes))!=-1){
            bos.write(bytes);
        }
        bos.close();
        bis.close();
    }
}
